/**
 * 
 */
package com.antilia.infomaresme.pages.details;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.markup.html.AjaxLink;
import org.apache.wicket.markup.html.panel.Panel;

/**
 * @author Ernesto
 *
 */
public abstract class DetailsLinkPanel extends Panel {

	private static final long serialVersionUID = 1L;

	/**
	 * @param id
	 * @param model
	 */
	public DetailsLinkPanel(String id) {
		super(id);
		AjaxLink<Void> link = new AjaxLink<Void>("link") {
			
			private static final long serialVersionUID = 1L;

			@Override
			public void onClick(AjaxRequestTarget target) {
				DetailsLinkPanel.this.onClick(target);				
			}
		};
		add(link);
	}

	public abstract void onClick(AjaxRequestTarget target);
	
}
